<block cond="$lsttp=='memo'">
{@
	$ci['content']->search = 'N';
}
</block>

<div class="scSchArea clearBar">
	<div class="scSch fl">
		<form ruleset="searchBeluxe" action="{getUrl('')}" method="get" id="searchFo" no-error-return-url="true">
			<input type="hidden" name="category_srl" value="{$category_srl}" />
			<span class="scBtn black"><a href="{$oEntry->getUrl('act','dispBoardTagList')}" class="tagBtn" title="{$lang->tag}" accesskey="t"><em>{$lang->tag}</em></a></span>
			<select name="search_target" class="scSchTarget">
				<option loop="$ci=>$key,$val" cond="$val->search=='Y'" value="{$key}" selected="selected"|cond="$key==$search_target">{$val->name}</option>
				<option cond="$search_target&&$ci[$search_target]->search!='Y'" value="{$search_target}" selected="selected">{Context::getLang($search_target)}</option>
			</select>
			<span class="scBtn"><input class="keyword" type="text" name="search_keyword" value="{$search_keyword}" /></span>
			<span cond="!$search_keyword" class="scBtn"><button type="submit">{$lang->cmd_search}</button></span>
			<span cond="$search_keyword&&$last_division" class="scBtn"><a href="{$oEntry->getUrl('page',1,'document_srl','','division',$last_division,'last_division','')}">{$lang->cmd_search_next}</a></span>
			<span cond="$search_keyword" class="scBtn"><a href="{$oEntry->getUrl('','mid', $mid,'category_srl', $category_srl)}">{$lang->cmd_cancel}</a></span>
		</form>
	</div>

	<div class="scBtnArea fr">
		<span class="scBtn" cond="$category_srl"><a href="{$oEntry->getUrl('','mid',$mid)}">{$lang->cmd_all_list}</a></span>
		<span class="scBtn" cond="!$category_srl&&$document_srl"><a href="{$oEntry->getUrl('act', '','document_srl','','npage','','cpage','')}">{$lang->cmd_list}</a></span>
		<span class="scBtn black" cond="$lsttp=='blog'&&!$grant->write_document"><a cond="!$is_logged" href="{$oEntry->getUrl('act','dispMemberLoginForm')}">{$lang->cmd_login}</a><a cond="$is_logged" href="#" onclick="location.reload();return false">{$lang->reload}</a></span>
		<span class="scBtn black" cond="$lsttp=='blog'&&$grant->write_document"><a href="{$us_modal?'#siModalWin':$oEntry->getUrl('act','dispBoardWrite','document_srl','')}" class="modalAnchor"|cond="$us_modal" data-mode="insert" accesskey="w">{$lang->document_write}</a></span>
		<span class="scBtn black" cond="$lsttp!='blog'"><a href="#" onclick="location.reload();return false">{$lang->reload}</a></span>
	</div>
</div>
